import httpaxios from "../utils/http"
//购物车接口
// 加入购物车
export const cartapi = ({ skuId, count }) => {
    return httpaxios({
      url: '/member/cart',
      method: 'POST',
      data: {
        skuId,
        count
      }
    })
  }
  
  // 获取最新的购物车列表
export const getcartapi = () => {
    return httpaxios({
      url: '/member/cart',
    })
  }

  //删除购物车
  // 删除购物车
export const delcartapi = (ids) => {
  return httpaxios({
    url: '/member/cart',
    method: 'DELETE',
    data: {
      ids
    }
  })
}